package cn.lstf666.springboot.g02springbootspringmvc.web;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class springbootController {

    @Value("${school.name}")
    private String schoolName;


    @RequestMapping("/say")
    public @ResponseBody String say(){

        return "Hi,Springboot"+schoolName;
    }


}
